<template>
	<view>
		<header-top :messageInfo="{typeFlag:true,message:'详情'}"></header-top>
		<view class="flexcenter titletext">{{dataAll.title}}</view>
		<view class="mainpadding">
			<u-parse :content="dataAll.content"></u-parse>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				dataAll:{}
			}
		},
		onLoad(options) {
			this.init(options.id)
		},
		methods: {
			init(id) {
				let _this = this;
				httpRequest.request('/employeesapi/index/getPtNoticeDetail', 'POST', {
					id
				}, false, false, true).then(res => {
					this.dataAll = res.data
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
		}
	}
</script>

<style>
	.titletext{
		font-style: 28rpx;
		font-weight: bold;
		color: #333;
	}
</style>
